<div *ngIf="data">
    <p-dataTable [value]="data" resizableColumns="true" reorderableColumns="tableConfig.isReorder" [rows]="tableConfig.rowNum" [paginator]="tableConfig.isPage" [pageLinks]="tableConfig.pageLinkNum" [responsive]="tableConfig.isResponsive" [stacked]="stacked"  [globalFilter]="gb" selectionMode="{{selectiontype}}" [rowsPerPageOptions]="tableConfig.rowsPerPageOptions" [(selection)] = "section" (onRowSelect)="onRowSelect($event)">
        <p-column *ngFor="let item of tableConfig.module" [filter]="tableConfig.isFilter" filterPlaceholder="Search" field="{{item.field}}" header="{{item.header}}" [sortable]="tableConfig.isSort">
            <!--<template let-col let-car="rowData" pTemplate type="body" *ngIf="item.isTempl">
                <div [innerHTML]="item.template"></div>
                
                {{col.color}}
                <span [style.color]="item[col.field]">{{item.field}}</span>
            </template>-->
            <!--<template let-col let-jj="rowData" pTemplate type="body" *ngIf="item.isTempl">
                <pre [innerHTML]="item.template">

                </pre>
                <div innerHTML = "{{item.template}}"></div>
                   <span [style.color]="jj[col.field]">{{jj[col.field]}}</span>
                </template>-->
        </p-column>
    </p-dataTable>
    <!-- <p-contextMenu #contextMenu [model]="menuItems"></p-contextMenu> -->
</div>